package ru.ifmo.metopt.abstracts;

import org.springframework.beans.factory.annotation.Required;
import ru.ifmo.metopt.abstracts.Factory;

/**
 * @author avhaliullin
 */
public class ConstantDoubleProvider implements Factory<Double> {
    private double value;

    @Required
    public void setValue(double value) {
        this.value = value;
    }

    @Override
    public Double create() {
        return value;
    }
}
